<%-- 
    Document   : AddConsultant
    Created on : Feb 27, 2014, 11:03:27 AM
    Author     : Mukesh
--%>

<%@page import="FeeType.FeeTypeBean"%>
<%@page import="java.util.Iterator"%>
<%@page import="java.util.Vector"%>
<%
    try {
        if (session.getAttribute("uid") != null) {
            if (session.getAttribute("Income_Expense").toString().equals("1")) {
%>
<%String to = "", status = "", msg = "";%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <title>Ramgovind Automated System</title>
        <link rel="stylesheet" href="/RIT/css/bootstrap.css">
        <link rel="stylesheet" href="/RIT/css/bootstrap-responsive.css">
        <link rel="stylesheet" href="/RIT/css/jquery.fancybox.css">
        <link rel="stylesheet" href="/RIT/css/style.css">
        <link rel="stylesheet" href="/RIT/css/iconfont.css">
        <link rel="stylesheet" href="/RIT/css/bootstrap.datepicker.css">
        <script src="../../ajax/ajax.js"></script>

    </head>
    <body>
        <div id="ILoader"></div>
        <%@include file="/topheader.html" %>
        <%@include file="/servicesheader.html" %>
        <div class="main">
            <div class="container-fluid">
                <%@include file="/Services/Accounts/accsidenav.jsp" %>
                <div class="content">
                    <%if (session.getAttribute("status") != null) {
                            status = session.getAttribute("status").toString();
                            msg = session.getAttribute("msg").toString();
                    %>
                    <div class="alert alert-success alert-block">
                        <a class="close" data-dismiss="alert" href="#"><img src="/RIT/img/mclose.png"></a>
                        <h4 class="alert-heading"> <%=status%></h4>
                        <%=msg%>

                    </div>
                    <%session.removeAttribute("status");
                            session.removeAttribute("msg");
                        }%>
                    <div class="row-fluid">
                        <div class="span12">
                            <div class="box">
                                <div class="box-head">
                                    <h3>Income Expense</h3>
                                    <a href="IncomeExpense.jsp">
                                        <button style="float: right" class="btn btn-success">View Income Expense</button>
                                    </a>
                                </div>
                                <form action="/RIT/EditIncomeExpense" method="post" class='validate form-horizontal'>
                                    <div class="box-content">
                                        <!---Form Start....-->

                                        <div id="lside" style="float: left; margin-top: 10px;">
                                            <div class="control-group">
                                                <label class="control-label " for="radio2">
                                                    Account Type
                                                    <span style="color:red">*</span>
                                                </label>
                                                <div class="controls">
                                                    <label class="radio" style="float: left;">
                                                        <input id="ma" type="radio" value="1" name="account_type" <%if (request.getParameter("account_type").equals("1")) {%>checked<%}%>>
                                                        Income
                                                    </label>
                                                    <label class="radio" style="float: left;padding-top: 5px; padding-left: 59px;">
                                                        <input id="fe" type="radio" value="2" name="account_type" <%if (request.getParameter("account_type").equals("2")) {%>checked<%}%>>
                                                        Expense
                                                    </label>
                                                </div>
                                            </div>
                                            <div class="control-group">
                                                <label for="amount" class="control-label">Amount<span style="color:red">*</span></label>
                                                <div class="controls">
                                                    <input type="text" name="amount" id="amount" class='required' value="<%=request.getParameter("amount")%>">
                                                    <input type="hidden" name="jid" id="jid" value="<%=request.getParameter("jid")%>">

                                                </div>
                                            </div>
                                            <div class="control-group">
                                                <label class="control-label" for="description">Narrative<span style="color:red">*</span></label>
                                                <div class="controls">
                                                    <textarea id="narrative" class="span9 input-square" rows="6" name="narrative" style="width: 99.359%;"><%=request.getParameter("description")%></textarea>
                                                </div>
                                            </div>


                                        </div>
                                        <div id="rside" style="float: left; margin-top: 15px">
                                            <div class="control-group">
                                                <label class="control-label" for="pay_mode">
                                                    Pay Mode
                                                    <span style="color:red">*</span>
                                                </label>
                                                <div class="controls">
                                                    <select id="session" class="" name="pay_mode" >
                                                        <%String paymode = "";
                                                            if (request.getParameter("pay_mode").equals("1")) {
                                                                paymode = "Cash";

                                                            } else if (request.getParameter("pay_mode").equals("2")) {
                                                                paymode = "Cheque";
                                                            } else if (request.getParameter("pay_mode").equals("3")) {
                                                                paymode = "DD";
                                                            }
                                                        %>
                                                        <option value="<%=request.getParameter("pay_mode")%>"><%=paymode%></option>
                                                        <option value="">Select Payment</option>
                                                        <option value="1">Cash</option>
                                                        <option value="2">Cheque</option>
                                                        <option value="3">DD</option>
                                                    </select>
                                                </div>
                                            </div>
                                            <div class="control-group">
                                                <label for="chequeno" class="control-label">Cheque No</label>
                                                <div class="controls">
                                                    <input type="text" name="cheque_no" id="cheque_no" class="" value="<%=request.getParameter("cheque_no")%>" >

                                                </div>
                                            </div>

                                            <div class="control-group">
                                                <label for="bank" class="control-label">Bank</label>
                                                <div class="controls">
                                                    <input type="text" name="bank" id="bank" class="" value="<%=request.getParameter("bank")%>" >
                                                </div>
                                            </div>
                                            <div class="control-group">
                                                <label for="branch" class="control-label">Branch</label>
                                                <div class="controls">
                                                    <input type="text" name="branch" id="branch" class="" value="<%=request.getParameter("branch")%>" >

                                                </div>
                                            </div>
                                            <div class="control-group">
                                                <label for="dot" class="control-label">Date of Transfer<span style="color:red">*</span></label>
                                                <div class="controls">
                                                    <input type="text" name="dot" id="admiDate" class='input-square datepick required' value="<%=request.getParameter("dot")%>" >  
                                                </div>
                                            </div>
                                        </div>
                                        <div id="">
                                        </div>
                                        <!---Form Ends....-->
                                    </div>
                                    <div class="form-actions">
                                        <input type="submit" class='btn btn-primary'  id="subfm">
                                    </div>
                                </form>                                        </div>
                        </div>
                    </div>
                </div>	
            </div>
        </div>
        <script src="/RIT/js/jquery.js"></script>
        <script src="/RIT/js/less.js"></script>
        <script src="/RIT/js/bootstrap.min.js"></script>
        <script src="/RIT/js/jquery.uniform.min.js"></script>
        <script src="/RIT/js/bootstrap.timepicker.js"></script>
        <script src="/RIT/js/bootstrap.datepicker.js"></script>
        <script src="/RIT/js/chosen.jquery.min.js"></script>
        <script src="/RIT/js/jquery.fancybox.js"></script>
        <script src="/RIT/js/plupload/plupload.full.js"></script>
        <script src="/RIT/js/plupload/jquery.plupload.queue/jquery.plupload.queue.js"></script>
        <script src="/RIT/js/jquery.cleditor.min.js"></script>
        <script src="/RIT/js/jquery.inputmask.min.js"></script>
        <script src="/RIT/js/jquery.tagsinput.min.js"></script>
        <script src="/RIT/js/jquery.mousewheel.js"></script>
        <script src="/RIT/js/jquery.textareaCounter.plugin.js"></script>
        <script src="/RIT/js/ui.spinner.js"></script>
        <script src="/RIT/js/jquery.jgrowl_minimized.js"></script>
        <script src="/RIT/js/jquery.form.js"></script>
        <script src="/RIT/js/jquery.validate.min.js"></script>
        <script src="/RIT/js/bbq.js"></script>
        <script src="/RIT/js/jquery-ui-1.8.22.custom.min.js"></script>
        <script src="/RIT/js/jquery.form.wizard-min.js"></script>
        <script src="/RIT/js/jquery.cookie.js"></script>
        <script src="/RIT/js/jquery.metadata.js"></script>
        <script src="/RIT/js/custom.js"></script><script src="/RIT/js/demo.js"></script>
        <script src="/RIT/js/iconfont.js"></script>
        <script src="/RIT/js/IncomeExpense.js"></script>
    </body>
</html>

<%} else {
%>
<script type="text/javascript">
    alert("You Are Not Authorised");
    window.history.back();
</script>
<%             }
        } else {
            request.setAttribute("msg", "You Are Not Authorised! Please Contact to System Administrator!");
            request.setAttribute("value", "0");
            getServletContext().getRequestDispatcher("/index.jsp").forward(request, response);
        }
    } catch (Exception e) {
        request.setAttribute("msg", "Please Contact to System Administrator!");
        request.setAttribute("value", "0");
        getServletContext().getRequestDispatcher("/index.jsp").forward(request, response);
    }
%>

